package b6.vacancyshare.activity;

import b6.vacancyshare.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MenuUtama extends Activity {
	TextView logoutuser;
	Button postVacancy;
	Button myVacancy;
    Button favVacancy;
    Button searchVacancy;
    Button map;
    
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dashboard_user);
        
        logoutuser = (TextView)findViewById(R.id.LogoutUser);
        postVacancy = (Button)findViewById(R.id.PostVacancyButton);
        myVacancy = (Button)findViewById(R.id.MyVacancyButton);
        favVacancy = (Button)findViewById(R.id.FavouriteVacancyButton);
        searchVacancy = (Button)findViewById(R.id.SearchVacancyButton);
        map = (Button)findViewById(R.id.MapButton);
        final Intent route1 = new Intent(this, b6.vacancyshare.activity.MenuLogin.class);
        final Intent route2 = new Intent(this, b6.vacancyshare.activity.MenuPos.class);
        final Intent route3 = new Intent(this, b6.vacancyshare.activity.MenuLowongan.class);
        final Intent route4 = new Intent(this, b6.vacancyshare.activity.MenuFavorit.class);
        final Intent route5 = new Intent(this, b6.vacancyshare.activity.MenuPencarianDaftar.class);
        final Intent route6 = new Intent(this, b6.vacancyshare.activity.MenuPencarianPeta.class);
        
        logoutuser.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route1);
			}
        	
        });
        
        postVacancy.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route2);
			}
        	
        });
        
        myVacancy.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route3);
			}
        	
        });
        
        favVacancy.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route4);
			}
        	
        });
        
        searchVacancy.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route5);
			}
        	
        });
        
        map.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route6);
			}
        	
        });
    }
}